$(function(){
	var a=$(window).width()*0.055+'px';
	var b=$(window).width()*0.1875+'px';
	var c=$(window).width()*1.28125+'px';
	// 导航高度
	var d=$(window).width()*0.125+'px';
	$(".z_header_top").css("height",a);
	$(window).resize(function(){
  		a=$(window).width()*0.055+'px';
		$(".z_header_top").css("height",a);
	});

	$(".z_header_logo_block_bg").css("height",b);
	$(window).resize(function(){
		b=$(window).width()*0.1875+'px';
		$(".z_header_logo_block_bg").css("height",b);
	});

	$(".z_carousel").css({"height":c,"margin-top":0});
	$(window).resize(function(){
		c=$(window).width()*1.28125+'px';
		$(".z_carousel").css({"height":c,"padding-top":0});
	});


	// $(".x_menu").css({"height":d,"margin-top":0});
	// $(".x_menu_content").css({"bottom":d,"margin-top":0});
	// $(".x_menu_item").css({"height":d,"margin-top":0});
	// $(window).resize(function(){
	// 	var d=$(window).width()*0.125+'px';
	// 	$(".x_menu").css({"height":d,"padding-top":0});
	// });

	sethidden();
	//点击三个模块
	var see=1;
	$("#b_ppgl").click(function(){
		sethidden();
		$("#top_title").hide();
		$("#top_img").show();
		$(".z_center_main").fadeOut();
		$("#ppgl").fadeIn(2000);
		// $("#title").attr("src","/image/mobile/ppgl.png");
		see++;
	});
	$("#b_cysj").click(function(){
		sethidden();
		$("#top_title").hide();
		$("#top_img").show();
		$(".z_center_main").fadeOut();		
		$("#cysj").fadeIn(2000);
		// $("#title").attr("src","/image/mobile/cysj.png");
		see++;
	});
	$("#b_cbzx").click(function(){
		sethidden();
		$("#top_title").hide();
		$("#top_img").show();
		$(".z_center_main").fadeOut();
		$("#cbzx").fadeIn(2000);
		// $("#title").attr("src","/image/mobile/cbzx.png");
		see++;
	});


	//下拉模块
	// $("#z_down").css("display","none");
	// $("#z_hide1").css("display","none");
	// $("#z_brand1").click(function(){
	// 	$("#z_down").css("display","block");
	//     $("#z_hide1").slideDown("slow");
	// });
	
});
function sethidden(){
	$("#ppgl").css("display","none");
	$("#cysj").css("display","none");
	$("#cbzx").css("display","none");
	$(".z_carousel").css("display","none");
	// $("#play").attr("src","/image/mobile/play.png");

}
// 下拉模块
function set(i,k){
	if(i == 0){
		// alert('直接跳转');
	}else{
		if ($("#"+k+"_hide"+i).css("display")=='block') {
			$("#"+k+"_down"+i).css("display","block");
			$("#"+k+"_set_hide"+i).css("display","none");
			$("#"+k+"_hide"+i).slideUp();
		}else{
			$('.z_down').css("display","block");
			$('.z_hide').css("display","none");
			$('.z_brand_hide_block').slideUp();
			$("#"+k+"_down"+i).css("display","none");
			$("#"+k+"_set_hide"+i).css("display","block");
			$("#"+k+"_hide"+i).slideDown().siblings().hide();
			$("#"+k+"_brand"+i).css("display","block");
		}
	}

}

// --xin 同类去三角--
// $(function(){
// 	$(".z_brand_block").click(function(){
// 		// $(this).siblings().children("img.s_down").hide();
// 		// $(this).siblings().children("div.z_brand_hide_block").hide();
// 	})
// })